<?php
namespace BoxEng\Hooks;
class EngHooks extends \HooksController
{
    //任务行为执行入口
    public function run(&$param)
    {
        // echo 12;

    }

    function get_init_param_BoxEng(&$param)
    {
        $array = array();
        if ($this->user_id) {
            $key = $this->user_id . "_read_words";
            $my_read_detail = S($this->user_id . "_my_read_detail");
            $my_read_words = S($key);
        }
        $array = array(
            'my_read_words' => $my_read_words ? $my_read_words : "{}",
            'read_detail' => $my_read_detail ? $my_read_detail : "{}",
            'debug' => true,//是否调试
            //'debug'=>false,//是否调试
            'BoxVersion' => '2.8',//版本号
            'BoxVersionCache' => '2.4',//缓存号，重新发布
        );
        if ($array['debug']) {
            $array['BoxVersion'] = $array['BoxVersion'] . "_" . time();
        }
        $param = array_merge($param, $array);
    }


}
